package com.zhouyu.service;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.stereotype.Component;

@Component
public class MyAutowireAnnotationBeanPostProcessor extends AutowiredAnnotationBeanPostProcessor {



	@Override
	public void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName){

		if ("user1".equals(beanName)) {
			System.out.println("AutowiredAnnotationBeanPostProcessor ---postProcessMergedBeanDefinition" );
		}	}


}
